package com.lobo.blog.mappers;

import com.lobo.blog.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @authoer:MacieSerenity
 * @createDate: 2022/9/28
 * @description:
 */
@Mapper
public interface AdminUserMapper {
    //查看用户是否存在
    User getUserInfoByUsername(@Param("username") String name);

    User findUser(@Param("username") String username,
                  @Param("password") String password);

    User getUserById(@Param("id") Integer id);
}
